<?php
namespace App\Lib\PHPExcel\ManuOrder;

use App\Lib\PHPExcel\ExcelHandle;

class OrderRefund extends ExcelHandle
{
    /*
     *退货订单
     * */
    public function arrange($origin_arr)
    {

        $arr = [
            0 => [
                '厂家', '产品','颜色','尺寸', '库存'
            ]
        ];
        $i = 1;
        foreach ($origin_arr as $data) {
            $arr[$i]['厂家'] = $data['manu_name'];
            $arr[$i]['产品'] = $data['origin_prod_name'];
            $arr[$i]['颜色'] = $data['color'];
            $arr[$i]['尺寸'] = $data['size'];
            $arr[$i]['库存'] = $data['total_stock'];
            $i++;
        }

        return $arr;
    }


}